package com.nobody.facepk.model;

import java.util.HashSet;
import java.util.Set;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import com.nobody.facepk.persist.PersistentSupport;

@Entity
@Table(name="T_DOG")  
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class Dog extends PersistentSupport{
	private String name;
//	private DataEntry dataEntry;
	private Set<Long> friendIds = new HashSet<Long>();
	
	public String getName() {
		return this.name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
//	@Type(type="com.nobody.facepk.persist.type.JsonType",parameters= {@Parameter(name="class",value="com.nobody.facepk.pojo.json.DataEntry")})
//	@Column(name="dataEntry",table="T_DOG_ENTRY",columnDefinition = "varchar(255) default null")
//	public DataEntry getDataEntry() {
//		return this.dataEntry;
//	}
//	public void setDataEntry(DataEntry dataEntry) {
//		this.dataEntry = dataEntry;
//	}
	

}
